import { createApp } from 'vue'
import '@/styles/global.css'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

// if (import.meta.env.DEV) {
//   const { worker } = await import('./mocks/browser');
//   worker.start();
// }

const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

app.use(router)
app.use(ElementPlus)
app.use(pinia)
app.mount('#app')
